package com.miaosha.result;

public class CodeMessage {
    private int code;
    private String msg;

    public static CodeMessage SUCCESS = new CodeMessage(0,"success");
    public static  CodeMessage SERVER_ERROR = new CodeMessage(500,"error");
    private CodeMessage(int code,String msg){
        this.code = code;
        this.msg = msg;
    }
    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
